Skip to content

Add a low memory limit hint #1090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 14, 2020
Merged

Add a low memory limit hint #1090

merged 7 commits into from
Mar 14, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Jan 31, 2020

This is an initial implementation of a --lowMemoryLimit hint as suggested in #1089.

  • Emits an error if the limit is exceeded by static data
  • Emits an error Traps if the limit is exceeded by TLSF bookkeeping structures
  • Restricts initial memory added to TLSF's free list
  • Only useful if available memory is less than 64kb

This might have several corner cases, but should be good for initial test runs to find out more.

@dcodeIO
Copy link
Member Author

dcodeIO commented Mar 14, 2020

Iirc this didn't work perfectly the last time it was tried, but also isn't breaking anything. As such I suggest to merge so more people with a respective use case can get their hands on it, and improve once we know more.

@dcodeIO dcodeIO merged commit ab71d93 into master Mar 14, 2020
@dcodeIO dcodeIO deleted the low-memory-limit branch March 15, 2020 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants